<div class="silk-cms-manage-links">
    <ul>
	<li><a href="javascript:void(0)" class="template-add-link" i18n:translate="string:Add Template"></a></li>
    </ul>
</div>

<div id="silk-cms-template-editor" style="display:none">

    <h5 i18n:translate="string:Template Editor"></h5>

    <div class="silk-cms-field">
	<label i18n:translate="string:Template Name"/>
	<input type="text" id="template-name"/>
    </div>

    <div class="silk-cms-field">
	<label i18n:translate="string:Template Content"/>
	<textarea id="template-content"></textarea>
    </div>


    <button id="cancel-template" i18n:translate="string:Cancel"/> <button id="update-template" i18n:translate="string:Save"/>
</div>

<div id="silk-cms-type-template-list">
    <table class="silk-cms-list" id="type-templates">

	<thead>
	    <tr>
		<th i18n:translate="string:template name"></th>
		<th i18n:translate="string:actions" class="silk-cms-row-actions"></th>
	    </tr>
	</thead>

	<tbody>
	    <tr tal:repeat="template type/getTemplates">

		<td>
		    <span class="template_name" tal:content="template/name|default"/>
		</td>

		<td class="silk-cms-row-actions">
		    <input type="hidden" name="type[actions][name][]" class="hidden_template_name" tal:attributes="value template/name|default"/>
		    <input type="hidden" name="type[actions][content][]" class="hidden_template_content" tal:attributes="value template/content|default"/>

		    <a href="javascript:void(0)" class="template-edit-link" i18n:translate="string:Edit"></a> |
		    <a href="javascript:void(0)" class="template-delete-link" i18n:translate="string:Delete"></a>
		</td>

	    </tr>
	</tbody>
    </table>
</div>

<table style="display:none">
    <tr id="default-template-row">
	<td>
	    <span class="template_name" />
	</td>

	<td class="silk-cms-row-actions">
	    <input type="hidden" name="type[actions][name][]" class="hidden_template_name"/>
	    <input type="hidden" name="type[actions][content][]" class="hidden_template_content"/>

	    <a href="javascript:void(0)" class="template-edit-link" i18n:translate="string:Edit"></a> |
	    <a href="javascript:void(0)" class="template-delete-link" i18n:translate="string:Delete"></a>
	</td>
    </tr>
</table>